﻿



using System; 
using System.Collections;
using System.Collections.Generic ;
using System.Runtime.Serialization;

namespace ufida.u9.ait.openapi
{
	/// <summary>
	/// 预测订单AITDTO DTO :REST自定义的数据传输类型 
	/// 
	/// </summary>
	[DataContract(Namespace = "ufida.u9.ait.openapi")]
	[Serializable]
	public partial class ForecastOrderAITDTOData  
	{
		/// <summary>
		/// Default Constructor
		/// </summary>
		public ForecastOrderAITDTOData()
		{
			initData();
		}
		private void initData()
		{
		
		
		
		
		
		
		
		
		
		
		
		

			//调用默认值初始化服务进行配置方式初始化
			UFSoft.UBF.Service.DTOService.InitConfigDefault(this);
		}
		[System.Runtime.Serialization.OnDeserializing]
		internal void OnDeserializing(System.Runtime.Serialization.StreamingContext context)
		{
			 initData();
		}
		#region Do SerializeKey -ForDTODataType
		//只为处理集合型EntityKey。原因集合型EntityKey由于使用臫的集合对象，无法实现数据共享.-UBF专用.
		public void DoSerializeKeyList(IDictionary dict)
		{
			if (dict == null ) dict = new Hashtable() ;
			if (dict[this] != null)
				return ;
			dict[this] = this;
	        			if (this.ForecastOrderLines!=null)
			{
				foreach(ufida.u9.ait.openapi.ForecastOrderLineAITDTOData objdata in this.ForecastOrderLines)
				{
					objdata.DoSerializeKeyList(dict);
				}
			}
				        	        			if (this.Org != null) 
			{
				this.Org.DoSerializeKeyList(dict);
			}
	        			if (this.OrderOperator != null) 
			{
				this.OrderOperator.DoSerializeKeyList(dict);
			}
	        			if (this.DocmentType != null) 
			{
				this.DocmentType.DoSerializeKeyList(dict);
			}
	        			if (this.Department != null) 
			{
				this.Department.DoSerializeKeyList(dict);
			}
	        			if (this.Customer != null) 
			{
				this.Customer.DoSerializeKeyList(dict);
			}
	        	        	        			if (this.Project != null) 
			{
				this.Project.DoSerializeKeyList(dict);
			}
	        			if (this.DescFlexField != null) 
			{
				this.DescFlexField.DoSerializeKeyList(dict);
			}
	        
		}
		#endregion 
		/// <summary>
		/// Constructor Full Argument
		/// </summary>
		public ForecastOrderAITDTOData(  List<ufida.u9.ait.openapi.ForecastOrderLineAITDTOData> forecastOrderLines  , System.String shipPlanDate  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData org  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData orderOperator  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData docmentType  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData department  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData customer  , System.String businessDate  , System.String docNo  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData project  , ufida.u9.ait.openapi.CopyOfDescFlexSegmentsData descFlexField  , System.String note  )
		{
			initData();
			this.ForecastOrderLines = forecastOrderLines;
			this.ShipPlanDate = shipPlanDate;
			this.Org = org;
			this.OrderOperator = orderOperator;
			this.DocmentType = docmentType;
			this.Department = department;
			this.Customer = customer;
			this.BusinessDate = businessDate;
			this.DocNo = docNo;
			this.Project = project;
			this.DescFlexField = descFlexField;
			this.Note = note;
		}
		#region System Fields 
		//--系统字段,目前没有.EntityData上有相应的字段,用于保存相关的实体状态信息,DTO上没有状态信息.	
		#endregion
		
		#region DTO Properties 
	
		

		/// <summary>
		/// 预测订单行
		/// 预测订单AITDTO.Misc.预测订单行
		/// </summary>
		private List<ufida.u9.ait.openapi.ForecastOrderLineAITDTOData> m_forecastOrderLines ;
		[DataMember(IsRequired=false)]
		public List<ufida.u9.ait.openapi.ForecastOrderLineAITDTOData> ForecastOrderLines
		{
			get	
			{	
				if (m_forecastOrderLines == null )
				{
					List<ufida.u9.ait.openapi.ForecastOrderLineAITDTOData> n_m_list = new List<ufida.u9.ait.openapi.ForecastOrderLineAITDTOData>() ;
					m_forecastOrderLines = n_m_list ;
				}
				return m_forecastOrderLines ;
			}
			set	
			{	
				m_forecastOrderLines = value ;	
			}
		}
			
		

		/// <summary>
		/// 计划出货日期
		/// 预测订单AITDTO.Misc.计划出货日期
		/// </summary>
		private System.String m_shipPlanDate ;
		[DataMember(IsRequired=false)]
		public System.String ShipPlanDate
		{
			get	
			{	
				return m_shipPlanDate ;
			}
			set	
			{	
				m_shipPlanDate = value ;	
			}
		}
			
		

		/// <summary>
		/// 组织
		/// 预测订单AITDTO.Misc.组织
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_org ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData Org
		{
			get	
			{	
				return m_org ;
			}
			set	
			{	
				m_org = value ;	
			}
		}
			
		

		/// <summary>
		/// 业务员
		/// 预测订单AITDTO.Misc.业务员
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_orderOperator ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData OrderOperator
		{
			get	
			{	
				return m_orderOperator ;
			}
			set	
			{	
				m_orderOperator = value ;	
			}
		}
			
		

		/// <summary>
		/// 单据类型
		/// 预测订单AITDTO.Misc.单据类型
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_docmentType ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData DocmentType
		{
			get	
			{	
				return m_docmentType ;
			}
			set	
			{	
				m_docmentType = value ;	
			}
		}
			
		

		/// <summary>
		/// 部门
		/// 预测订单AITDTO.Misc.部门
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_department ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData Department
		{
			get	
			{	
				return m_department ;
			}
			set	
			{	
				m_department = value ;	
			}
		}
			
		

		/// <summary>
		/// 客户
		/// 预测订单AITDTO.Misc.客户
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_customer ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData Customer
		{
			get	
			{	
				return m_customer ;
			}
			set	
			{	
				m_customer = value ;	
			}
		}
			
		

		/// <summary>
		/// 业务日期
		/// 预测订单AITDTO.Misc.业务日期
		/// </summary>
		private System.String m_businessDate ;
		[DataMember(IsRequired=false)]
		public System.String BusinessDate
		{
			get	
			{	
				return m_businessDate ;
			}
			set	
			{	
				m_businessDate = value ;	
			}
		}
			
		

		/// <summary>
		/// 单号
		/// 预测订单AITDTO.Misc.单号
		/// </summary>
		private System.String m_docNo ;
		[DataMember(IsRequired=false)]
		public System.String DocNo
		{
			get	
			{	
				return m_docNo ;
			}
			set	
			{	
				m_docNo = value ;	
			}
		}
			
		

		/// <summary>
		/// 项目
		/// 预测订单AITDTO.Misc.项目
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_project ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData Project
		{
			get	
			{	
				return m_project ;
			}
			set	
			{	
				m_project = value ;	
			}
		}
			
		

		/// <summary>
		/// 描述型弹性域
		/// 预测订单AITDTO.Misc.描述型弹性域
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfDescFlexSegmentsData m_descFlexField ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfDescFlexSegmentsData DescFlexField
		{
			get	
			{	
				return m_descFlexField ;
			}
			set	
			{	
				m_descFlexField = value ;	
			}
		}
			
		

		/// <summary>
		/// 备注
		/// 预测订单AITDTO.Misc.备注
		/// </summary>
		private System.String m_note ;
		[DataMember(IsRequired=false)]
		public System.String Note
		{
			get	
			{	
				return m_note ;
			}
			set	
			{	
				m_note = value ;	
			}
		}
			
		#endregion	

		#region Multi_Fields
																								
		#endregion 
	} 	
}
